package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WmMaterialMapper extends BaseMapper<WmMaterial> {


    /**
     * 根据图片路径查找素材id
     * @return
     */
    List<Integer> selectRelationsIds(@Param("urls")List<String> urls, @Param("userId")Integer userId);
}